package com.neusoft.movie.v_movies.model;


import com.neusoft.movie.v_movies.common.Constants;
import com.neusoft.movie.v_movies.listener.RetrofitListener;
import com.neusoft.movie.v_movies.service.ActivityService;
import com.neusoft.movie.v_movies.service.ArticlesService;

import retrofit2.Call;

/**
 * Created by Administrator on 2017/12/26.
 */

public class ArticlesModel extends RetrofitBaseModel {
    private ArticlesService articlesService;


    public ArticlesModel() {
        this.articlesService = retrofit.create(ArticlesService.class);
    }

    public void getArticleslist(RetrofitListener listener) {
        Call call = articlesService.getArticleslist();
        bindCallback(call, listener, Constants.GETARTICLESLIST);
    }

    public void getDetail(int a_id,RetrofitListener listener) {
        Call call = articlesService.getDetail(a_id);
        bindCallback(call, listener, Constants.GETARTICLEDETAIL);
    }




}
